package org.travel.app.common.exception;

/**
 * @author nmm
 * @date 2024-10-2024/10/17
 * @deriction njm......
 */

public enum ErrorsEnum {

    LOGIN_EXCEPTION(10001,"账号或密码有误"),
    UN_AUTHOR_EXCEPTION(401,"请先登录"),
    NO_REGISTER_EXCEPTION(402,"查无此用户,请先进行注册!"),
    AUTH_EXCEPTION(10005,"无效Token或已经失效"),
    DATA_ADD_EXCEPTION(20000,"数据添加异常"),

    DATA_UPDATE_EXCEPTION(20001,"数据修改异常"),

    DATA_DELETE_EXCEPTION(20002,"数据删除异常")
    ;



    private Integer code;
    private String msg;

    ErrorsEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer code() {
        return code;
    }

    public String msg() {
    	return msg;
    }
}